package com.pansky.crm.service;

import com.pansky.crm.common.mybatisplus.ApiResult;
import com.pansky.crm.common.mybatisplus.SuperService;
import com.pansky.crm.entity.Privilege;
import com.pansky.crm.entity.vo.RolePrivilegeTreeVO;
import com.pansky.crm.entity.vo.RolePrivilegeVo;

import java.util.List;

/**
 * @author ：zhouzhiyong
 * @date ：Created in 2021/2/22 10:36
 * @description：权限service
 */
public interface PrivilegeService  extends SuperService<Privilege> {

    List<Privilege> findPrivilegeByRoleId(Integer roleId);

    RolePrivilegeTreeVO findMenuPrivilegeByRoleId(Integer roleId);

    List<RolePrivilegeVo> findMenuPrivilege();

    ApiResult<Boolean> removeByPrivilegeId(Integer privilegeId);
}
